package com.exception.ErrorCode;

/**
 * @author fanshihao
 * @date 2025-03-31 21:16
 */
public enum ChargingErrorCode implements ErrorCode {

    TYPE_IS_EXIST("TYPE_IS_EXIST", "该类别已经存在"),

    TYPE_CHARGING_IS_EXIST("TYPE_CHARGING_IS_EXIST","删除的类别中存在该类别的充电桩删除失败"),

    CHARGING_ID_IS_EXIST("CHARGING_ID_IS_EXIST","充电桩编号已经存在")


    ;

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    private String code;
    private String message;

    ChargingErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
